package com.code.day21;

import java.util.Scanner;

public class DemoZheng {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个字符串:");
        String data = scanner.next();
        boolean matches = data.matches("[1-9][0-9]{4,15}");
        System.out.println(matches);
    }
}
